Teaching in hazardous huts banned